<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Homework2</title>
</head>
<body>
<pre>
    #  编写Python代码判断⽤户输⼊的两个单词是否字⺟相 同，且出现的次数也⼀样
    words = list(input().split())
    str1 = list(words[0])
    str2 = list(words[1])
    str1.sort()
    str2.sort()
    print(str1 == str2)
</pre>
</body>
</html>
